<!DOCTYPE html>
<html>
<#include "include/header.html"/>
  <body id="record">
    <div class="page">
      <div class="content">
        <img src="${ctx}/resource/images/banner.png" class="banner">
        <div class="wrap">
        <div class="info">
          <div class="coins">我的活力币：<span>${championUser.energy_currency!}</span></div>
        </div>
         <!-- 导航栏 -->
        <nav>
          <ul>
            <li><a href="${ctx}/home/homePage">返回首页</a></li>
            <li><a href="${ctx}/home/forwardExchang">拼手气</a></li>
          </ul>
        </nav>
              <ul id="record-list">
                <#list currencyRecordList as c>
   				 <li>在${c.remarks!}中获得<span>${c.energy_currency!}</span>个活力币</li>
    			</#list>
              </ul>
			  <#if pageNumber lt totalPage>
              <p class="more" id=pageNum1 onclick="nextPage(${pageNumber!}); return false;">点击加载更多……</p>
         	  </#if> 
        </div>
      </div>
      
    </div>
    <div class="mask"></div>
</body>
<script type="text/javascript">  
    nextPage=function(pnum){
    statistics(); //cnzz统计
	$("#pageNum1").remove();
	$.post("${ctx}/home/getCurrencyEecord",{
		 is_page:1, 
		 page:pnum+1
			},function(json){
				var htm="";
				var list=json.list;
				for(var i in list){
					htm+="<li>在"+list[i].remarks+"中获得<span>"+list[i].energy_currency+"</span>个活力币</li>";
				}
				if(json.pageNumber < json.totalPage){
					htm+="<p class='more' id='pageNum1' onclick='nextPage("+json.pageNumber+"); return false;'>点击加载更多……</p>";
				}
				$("#record-list").append(htm);			
		},'json');
	} 
</script>
</html>